package cn.oscar.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import commonUtils.dto.BlogDTO;
import commonUtils.entities.Blog;
import commonUtils.entities.Restful;


public interface BlogService extends IService<Blog>  {

    Restful<Page<BlogDTO>> selectByPage(int page, int pageSize, String name);

    Restful<String> deleteByIds(Long[] ids);

    Restful<String> lockBlog(Blog blog);

    Restful<String> addBlog(Blog blog);

    Restful<BlogDTO> getBlogById(Long id);
}
